package com.transactional.manager.repository.postgres

import com.transactional.manager.bean.postgres.Order
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
import java.time.LocalDateTime

@Repository
interface OrderRepository : JpaRepository<Order, Long> {
    fun findByUserId(userId: Long): List<Order>
    fun findByOrderTimeBetween(start: LocalDateTime, end: LocalDateTime): List<Order>
    fun findByStatus(status: String): List<Order>
} 